package com.lyncs.ods.modules.txn.service;

import com.lyncs.ods.modules.txn.model.TxnSkuDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyncs.ods.modules.txn.model.TxnSkuDetailVO;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * SKU交易详情 服务类
 * </p>
 *
 * @author alex
 * @since 2022-02-15
 */
public interface TxnSkuDetailService extends IService<TxnSkuDetail> {

    List<TxnSkuDetailVO> getDetails(List<Long> orderIds, List<Long> deliverIds);

    List<TxnSkuDetail> getTxnSkuDetail(Long orderId, Long deliverId);

    List<TxnSkuDetail> getTxnSkuDetail(Long orderId, Long deliverId, Boolean containDeletedSku);

    List<TxnSkuDetail> getTxnSkuDetails(List<Long> orderIds, List<Long> deliverIds);

    Integer getOrderDeliverCount(@NotNull Long orderId);
}
